package com.photoeditor.demo.util.update.dialog;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.photoeditor.R;
import com.photoeditor.demo.ui.dialog.BaseDialog;


/**
 * 作者：Administrator on 2016/8/3 20:11
 * 作用及描述：
 */
public class NoUpdateDialog extends BaseDialog {
    private TextView mTvContent;
    private TextView mTvOK;
    public NoUpdateDialog(Context context) {
        super(context);
    }

    @Override
    public void initDefaultView(Context context) {
        super.initDefaultView(context);
        setContentView(R.layout.update_unavaliable_laout);
        mRootView = findViewById(R.id.updata_unavalible_root);
        mTvContent = (TextView) findViewById(R.id.update_content);
        mTvOK = (TextView) findViewById(R.id.update_ok);
        mTvOK.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

    }

    public void setContentText(int textId) {
        mTvContent.setText(textId);
    }
}
